package com.example.red_tea_house.moudle.LoginAndRegister.controller;

import android.app.Activity;
import android.content.Intent;

import com.example.red_tea_house.annotation.HandlerType;
import com.example.red_tea_house.moudle.LoginAndRegister.view.VertifyLoginActivity;

public class VertifyLoginController extends GetVertifyController{

    private final VertifyLoginActivity vertifyLoginActivity;

    public VertifyLoginController(VertifyLoginActivity vertifyLoginActivity){
        this.vertifyLoginActivity=vertifyLoginActivity;
    }
    @Override
    protected void vertifySucess(){
        Intent intent = new Intent();
        intent.putExtra("vertifyLoginState", HandlerType.VERTIFY_LOGIN_SUCCESS);
        vertifyLoginActivity.setResult(Activity.RESULT_OK,intent);
        vertifyLoginActivity.finish();
    }
}
